package com.carl.zeus.dao.system;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.carl.zeus.model.system.SysRoleMenu;

import java.util.List;


/**
 *
 */
public interface SysRoleMenuMapper extends BaseMapper<SysRoleMenu> {

    List<SysRoleMenu> selectRoleMenuByRoleId(Long roleId);

    List<SysRoleMenu> selectRoleMenuByRoleIdAndMenuId(Long roleId, Long menuId);

    Integer deleteRoleMenuByRoleId(Long roleId);

    /**
     * 根据角色ID，获取菜单ID列表
	 */
    List<Long> queryMenuIdList(Long roleId);

    /**
     * 根据角色ID数组，批量删除
     */
    int deleteBatch(Long[] roleIds);

}